package com.hmall.order.config;

import org.springframework.amqp.core.Binding;
import org.springframework.amqp.core.BindingBuilder;
import org.springframework.amqp.core.Queue;
import org.springframework.amqp.core.TopicExchange;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class mqConfig {


/*    @Bean
    public TopicExchange topicExchange(){
        return new TopicExchange("delay.direct", true, false);
    }

    @Bean
    public Queue updateQueue(){
        return new Queue("delay.queue",true);
    }

    @Bean
    public Binding updateQueueBinding(){
        return BindingBuilder.bind(updateQueue()).to(topicExchange()).with("delay");
    }*/
}
